package com.roy.dsframework.jdbc.model.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.roy.dsframework.jdbc.model.domain.common.BaseDo;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serializable;


/**
 * @Description
 * @Author liguang
 * @Date 2024-05-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Builder(toBuilder = true)
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
public class Account extends BaseDo<Account> {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @TableField("name")
    private String name;
    @TableField("money")
    private Double money;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}

